import router from './router'
import progress from 'nprogress'
import 'nprogress/nprogress.css'

router.beforeEach((to, from, next) => {
  console.log('即将访问路由：' + (to.name || to.path))
  progress.start()
  next()
})
router.afterEach(() => {
  progress.done()
})
